#include <stdlib.h>
#include "od_task.h"
#include "od_sip_GJB_xml_cmd_define.h"


struct pdesc tiltservo_params[3] = {
    {0, 0, 32,   PT_STRI__SX(tiltservo, direction),         "direction", NULL, 0},
    {0, 0, 1,   PT_SINT__SS(tiltservo, speed, int32_t),     "speed",     NULL, 0},
    {0,0,0,XML_PT_NULL,"", NULL, 0}
};


struct pdesc panservo_params[3] = {
    {0, 0, 32,   PT_STRI__SX(panservo, direction),         "direction", NULL, 0},
    {0, 0, 1,   PT_SINT__SS(panservo, speed, int32_t),     "speed",     NULL, 0},
    {0,0,0,XML_PT_NULL,"", NULL, 0}
};

struct pdesc zoom_params[3] = {
    {0, 0, 32,   PT_STRI__SX(zoom, zoomctrl),          "zoomctrl", NULL, 0},
    {0, 0, 1,   PT_SINT__SS(zoom, speed, int32_t),    "speed",    NULL, 0},
    {0,0,0,XML_PT_NULL,"", NULL, 0}
};


struct pdesc focus_params[3] = {
    {0, 0, 32,   PT_STRI__SX(focus, focusctrl),          "focusctrl", NULL, 0},
    {0, 0, 1,   PT_SINT__SS(focus, speed, int32_t),     "speed",     NULL, 0},
    {0,0,0,XML_PT_NULL,"", NULL, 0}
};


struct pdesc aperture_params[3] = {
    {0, 0, 32,   PT_STRI__SX(aperture, aperturectrl),         "aperturectrl", NULL, 0},
    {0, 0, 1,   PT_SINT__SS(aperture, speed, int32_t),        "speed",        NULL, 0},
    {0,0,0,XML_PT_NULL,"", NULL, 0}
};


struct pdesc ptzctrl_params[12] = { 
    {0, 0, 32,   PT_STRI__SX(ptzctrl, commandname),           "commandname",   NULL, 0},
    {0, 0, 16,   PT_STRI__SX(ptzctrl, operation),             "operation",     NULL, 0},
    {0, 0, 64,   PT_STRI__SX(ptzctrl, seq),                   "seq",           NULL, 0},
    {0, 0, 32,   PT_STRI__SX(ptzctrl, ts),                    "ts",            NULL, 0},
    {0, 0, 32,   PT_STRI__SX(ptzctrl, devname),               "devname",       NULL, 0},
    {0, 0, 16,   PT_STRI__SX(ptzctrl, devid),                 "devid",         NULL, 0},
    {0, 0, 1,    PT_STRU__SS(ptzctrl, tilt, tiltservo),       "tiltservo",     tiltservo_params, 0},
    {0, 0, 1,    PT_STRU__SS(ptzctrl, pan, panservo),         "panservo",      panservo_params, 0},
    {0, 0, 1,    PT_STRU__SS(ptzctrl, zoom, zoom),            "zoom",          zoom_params, 0},
    {0, 0, 1,    PT_STRU__SS(ptzctrl, focus, focus),          "focus",         focus_params, 0},
    {0, 0, 1,    PT_STRU__SS(ptzctrl, aperture, aperture),    "aperture",      aperture_params, 0},
    {0,0,0,XML_PT_NULL,"", NULL, 0}
};


struct pdesc ptzposition_params[9] = {
    {0, 0, 32,   PT_STRI__SX(ptzposition, commandname),             "commandname",   NULL, 0},
    {0, 0, 16,   PT_STRI__SX(ptzposition, operation),               "operation",     NULL, 0},
    {0, 0, 64,   PT_STRI__SX(ptzposition, seq),                     "seq",           NULL, 0},
    {0, 0, 32,   PT_STRI__SX(ptzposition, ts),                      "ts",            NULL, 0},
    {0, 0, 32,   PT_STRI__SX(ptzposition, devname),                 "devname",       NULL, 0},
    {0, 0, 16,   PT_STRI__SX(ptzposition, devid),                   "devid",         NULL, 0},
    {0, 0, 1,    PT_STRI__SX(ptzposition, pointindexname),          "pointindexname",  NULL, 0},
    {0, 0, 1,    PT_SINT__SS(ptzposition, pointindexvalue, int32_t),"pointindexvalue", NULL, 0},
    {0,0,0,XML_PT_NULL,"", NULL, 0}
};


struct pdesc cmd_name[2] = {
    {0, 0, 32,   PT_STRI__SX(msg_request, commandname),  "commandname",   NULL, 0},
    {0,0,0,XML_PT_NULL,"", NULL, 0}
};


struct pdesc iframeconfreq_params[7] = {
    {0, 0, 32,   PT_STRI__SX(msg_iframeconfreq, commandname),  "commandname",   NULL, 0},
    {0, 0, 64,   PT_STRI__SX(msg_iframeconfreq, seq),          "seq",           NULL, 0},
    {0, 0, 32,   PT_STRI__SX(msg_iframeconfreq, ts),           "ts",            NULL, 0},
    {0, 0, 32,   PT_STRI__SX(msg_iframeconfreq, devname),      "devname",       NULL, 0},
    {0, 0, 16,   PT_STRI__SX(msg_iframeconfreq, devid),        "devid",         NULL, 0},
    {0, 0, 8,    PT_STRI__SX(msg_iframeconfreq, iframedelta),  "iframedelta",   NULL, 0},
    {0,0,0,XML_PT_NULL,"", NULL, 0}
};


struct pdesc msgosd_params[9] = {
    {0, 0, 16,   PT_STRI__SX(msg_osd, Index),    "index",   NULL, 0},
    {0, 0, 16,   PT_STRI__SX(msg_osd, Show),     "show",    NULL, 0},
    {0, 0, 16,   PT_STRI__SX(msg_osd, Left),     "left",    NULL, 0},
    {0, 0, 16,   PT_STRI__SX(msg_osd, Top),      "top",     NULL, 0},
    {0, 0, 16,   PT_STRI__SX(msg_osd, FontName), "fontname",NULL, 0},
    {0, 0, 16,   PT_STRI__SX(msg_osd, FontSize), "fontsize",NULL, 0},
    {0, 0, 16,   PT_STRI__SX(msg_osd, Color),    "color",   NULL, 0},
    {0, 0, 64,   PT_STRI__SX(msg_osd, Text),     "text",    NULL, 0},
    {0,0,0,XML_PT_NULL,"", NULL, 0}
};

    
struct pdesc msghdr_params[6] = {
    {0, 0, 32,   PT_STRI__SX(msg_header, commandname),  "commandname",   NULL, 0},
    {0, 0, 64,   PT_STRI__SX(msg_header, seq),          "seq",           NULL, 0},
    {0, 0, 32,   PT_STRI__SX(msg_header, ts),           "ts",            NULL, 0},
    {0, 0, 32,   PT_STRI__SX(msg_header, devname),      "devname",       NULL, 0},
    {0, 0, 16,   PT_STRI__SX(msg_header, devid),        "devid",         NULL, 0},
    {0,0,0,XML_PT_NULL,"", NULL, 0}
};

struct pdesc msg_customosd_params[8] = {
    {0, 0, 32,   PT_STRI__SX(msg_osd_customosd, commandname),  "commandname",   NULL, 0},
    {0, 0, 64,   PT_STRI__SX(msg_osd_customosd, seq),          "seq",           NULL, 0},
    {0, 0, 32,   PT_STRI__SX(msg_osd_customosd, ts),           "ts",            NULL, 0},
    {0, 0, 32,   PT_STRI__SX(msg_osd_customosd, devname),      "devname",       NULL, 0},
    {0, 0, 16,   PT_STRI__SX(msg_osd_customosd, devid),        "devid",         NULL, 0},
    {0, 0, 32,   PT_STRI__SX(msg_osd_customosd, customtype),   "customtype",    NULL, 0},
    {0, 0, 128,  PT_STRI__SX(msg_osd_customosd, customdata),   "customdata",    NULL, 0},
    {0,0,0,XML_PT_NULL,"", NULL, 0}
};



struct pdesc response_params[5] = {
    {0, 0, 32,   PT_STRI__SX(msg_response, commandname),  "commandname",   NULL, 0},
    {0, 0, 64,   PT_STRI__SX(msg_response, seq),          "seq",           NULL, 0},
    {0, 0, 32,   PT_STRI__SX(msg_response, response),     "response",      NULL, 0},
    {0, 0, 32,   PT_STRI__SX(msg_response, ts),           "ts",            NULL, 0},
    {0,0,0,XML_PT_NULL,"", NULL, 0}
};



/*_*/

